/*
 * @Author: szx
 * @Date: 2022-02-18 12:13:30
 * @LastEditTime: 2022-02-18 12:17:57
 * @Description:
 * @FilePath: \leetcode\1700-1799\1791\1791.js
 */
/**
 * @param {number[][]} edges
 * @return {number}
 */
var findCenter = function (edges) {
    if (edges[0][0] == edges[1][0] || edges[0][0] == edges[1][1]) return edges[0][0];
    else return edges[0][1];
};
